package com.vincent.template.service.security;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Vincent Wang
 * @date 2020/12/30 16:37
 */
public interface UserAccessService {

    /**
     * 判断用户的request是否有访问权限
     * 该方法配置到SecurityConfig中
     * @param request
     * @param authentication
     * @return
     */
    boolean isAccessible(HttpServletRequest request, Authentication authentication);
}
